package com.xfcycle.zebrabikegp.constant;

/**
 * 连接网络数据库所需要用到的常量
 * Created by xFcycle on 2017/6/8.
 */

public class WebConstant {

    //判断路径是美服还是国服 默认美服
    public static boolean isCN = false;

    /**
     * -----------------------------------请求方式------------------------------------
     */
    //put请求
    public static final String PUT = "put";
    //post请求
    public static final String POST = "post";
    //get请求
    public static final String GET = "get";

    /**
     * -----------------------------------修改用户手机号用到的常量------------------------------------
     */
    //申请修改手机 指令1
    public static final String CHANGE_MOBILE_PATH_ONE = "/user/";
    //申请修改手机 指令2
    public static final String CHANGE_MOBILE_PATH_TWO = "/mobile";
    //申请修改手机 参数key 手机号
    public static final String CHANGE_MOBILE_PATH_PARAM_KEY_MOBILE = "mobile";
    //申请修改手机 参数key 密码
    public static final String CHANGE_MOBILE_PATH_PARAM_KEY_PASSWORD = "password";
    //申请修改手机 参数key 验证码
    public static final String CHANGE_MOBILE_PATH_PARAM_KEY_CODE = "code";

    /**
     * -----------------------------------修改用户邮箱地址用到的常量------------------------------------
     */
    //申请修改邮箱 指令1
    public static final String CHANGE_EMAIL_PATH_ONE = "/user/";
    //申请修改邮箱 指令2
    public static final String CHANGE_EMAIL_PATH_TWO = "/email";
    //申请修改邮箱 参数key 邮箱号
    public static final String CHANGE_EMAIL_PATH_PARAM_KEY_EMAIL = "email";
    //申请修改邮箱 参数key 密码
    public static final String CHANGE_EMAIL_PATH_PARAM_KEY_PASSWORD = "password";
    //申请修改邮箱 参数key 验证码
    public static final String CHANGE_EMAIL_PATH_PARAM_KEY_CODE = "code";

    /**
     * -----------------------------------修改用户性别用到的常量------------------------------------
     */
    //申请修改用户性别
    public static final String CHANGE_GENDER_PATH = "/user/";
    //申请修改用户性别key
    public static final String CHANGE_GENDER_PATH_KEY = "gender";

    /**
     * -----------------------------------修改用户姓名用到的常量------------------------------------
     */
    //申请修改用户姓名
    public static final String CHANGE_USERNAME_PATH = "/user/";
    //申请修改用户姓名key
    public static final String CHANGE_USERNAME_PATH_KEY = "username";

    /**
     * -----------------------------------修改用户密码用到的常量------------------------------------
     */
    //申请修改用户密码
    public static final String CHANGE_PASSWORD_PATH = "/user/";
    //申请修改用户密码 key
    public static final String CHANGE_PASSWORD_PATH_KEY = "password";

    /**
     * -----------------------------------查找用户所有自行车用到的常量------------------------------------
     */
    //查找用户所有自行车 指令1
    public static final String GET_USER_BIKE_PATH_ONE = "/user/";
    //查找用户所有自行车 指令2
    public static final String GET_USER_BIKE_PATH_TWO = "/bike";

    /**
     * -----------------------------------下载数据用到的常量------------------------------------
     */
    //申请修改邮箱 指令1
    public static final String GET_DATA_PATH_ONE = "/user/";
    //申请修改邮箱 指令2
    public static final String GET_DATA_PATH_TWO = "/data";

    /**
     * -----------------------------------上传数据用到的常量------------------------------------
     */
    //申请修改邮箱 指令1
    public static final String SEND_DATA_PATH_ONE = "/user/";
    //申请修改邮箱 指令2
    public static final String SEND_DATA_PATH_TWO = "/data";
    //相关请求参数
    public static final String SEND_DATA_PATH_PARAM_UUID = "uuid";
    public static final String SEND_DATA_PATH_PARAM_BIKE_ID = "bike_id";
    public static final String SEND_DATA_PATH_PARAM_TIMESTAMP_FROM = "timestamp_from";
    public static final String SEND_DATA_PATH_PARAM_TIMESTAMP_TO = "timestamp_to";
    public static final String SEND_DATA_PATH_PARAM_DISTANCE = "distance";
    public static final String SEND_DATA_PATH_PARAM_TIME = "time";
    public static final String SEND_DATA_PATH_PARAM_CALORIE = "calorie";
    public static final String SEND_DATA_PATH_PARAM_PACE = "pace";
    public static final String SEND_DATA_PATH_PARAM_POWER = "power";

    /**
     * -----------------------------------设置自行车信息用到的常量------------------------------------
     */
    //申请修改邮箱
    public static final String SEND_BIKE_INFO_PATH = "/bike/";
    //相关请求参数
    public static final String SEND_BIKE_INFO_PATH_PARAM_NICKNAME = "nickname";
    public static final String SEND_BIKE_INFO_PATH_PARAM_USER_ID = "user_id";
    public static final String SEND_BIKE_INFO_PATH_PARAM_LOCK = "lock";
    public static final String SEND_BIKE_INFO_PATH_PARAM_BATTERY = "battery";
    public static final String SEND_BIKE_INFO_PATH_PARAM_SPEED = "speed";
    public static final String SEND_BIKE_INFO_PATH_PARAM_GEAR = "gear";
    public static final String SEND_BIKE_INFO_PATH_PARAM_ALERT_TYPE = "alert_type";
    public static final String SEND_BIKE_INFO_PATH_PARAM_LAT = "lat";
    public static final String SEND_BIKE_INFO_PATH_PARAM_LNG = "lng";
    public static final String SEND_BIKE_INFO_PATH_PARAM_LAST_AT = "last_at";

    /**
     * -----------------------------------发送命令给自行车用到的常量------------------------------------
     */
    //发送命令给自行车 指令1
    public static final String SEND_ORDER_TO_BIKE_PATH_ONE = "/bike/";
    //发送命令给自行车 指令2
    public static final String SEND_ORDER_TO_BIKE_PATH_TWO = "/cmd";
    //发送命令给自行车key
    public static final String SEND_ORDER_TO_BIKE_PATH_PARAM_CMD = "cmd";

    /**
     * -----------------------------------重置密码用到的常量------------------------------------
     */
    public static final String RESET_PASSWORD_PATH = "/public/resetpassword";
    //相关请求参数
    public static final String RESET_PASSWORD_PATH_MOBILE = "mobile";
    public static final String RESET_PASSWORD_PATH_EMAIL = "email";
    public static final String RESET_PASSWORD_PATH_PASSWORD = "password";
    public static final String RESET_PASSWORD_PATH_CODE = "code";

    /**
     * -----------------------------------生成短信验证码用到的常量------------------------------------
     */
    public static final String GET_SMS_AUTH_PATH = "/public/verification/sms/";
    //相关请求参数
    public static final String GET_SMS_AUTH_PATH_CHECK = "check";

    /**
     * -----------------------------------验证短信验证码用到的常量------------------------------------
     */
    public static final String AUTH_SMS_AUTH_PATH = "/public/verification/sms";
    //相关请求参数
    public static final String AUTH_SMS_AUTH_PATH_PASSWORD = "mobile";
    public static final String AUTH_SMS_AUTH_PATH_CODE = "code";


    /**
     * -----------------------------------生成邮件验证码用到的常量------------------------------------
     */
    public static final String GET_EMAIL_AUTH_PATH = "/public/verification/email/";
    //相关请求参数
    public static final String GET_EMAIL_AUTH_PATH_CHECK = "check";

    /**
     * -----------------------------------验证邮件验证码用到的常量------------------------------------
     */
    public static final String AUTH_EMAIL_AUTH_PATH = "/public/verification/email";
    //相关请求参数
    public static final String AUTH_EMAIL_AUTH_PATH_EMAIL = "email";
    public static final String AUTH_EMAIL_AUTH_PATH_CODE = "code";

    /**
     * -----------------------------------注册用到的常量------------------------------------
     */
    public static final String SIGNUP_PATH = "/public/signup";
    //相关请求参数
    public static final String SIGNUP_PATH_MOBILE = "mobile";
    public static final String SIGNUP_PATH_EMAIL = "email";
    public static final String SIGNUP_PATH_PASSWORD = "password";
    public static final String SIGNUP_PATH_CODE = "code";

    /**
     * -----------------------------------登陆用到的常量------------------------------------
     */
    public static final String LOGIN_PATH = "/public/login";
    //相关请求参数
    public static final String LOGIN_PATH_MOBILE = "mobile";
    public static final String LOGIN_PATH_EMAIL = "email";
    public static final String LOGIN_PATH_USERNAME = "username";
    public static final String LOGIN_PATH_PASSWORD = "password";

    /**
     * -----------------------------------注销用到的常量------------------------------------
     */
    public static final String LOGOUT_PATH = "/logout";
    //相关请求参数
    public static final String LOGOUT_PATH_USER_ID = "user_id";

    //获取用户信息
    public static final String GET_USER_INFO_PATH = "/user/";

    //获取自行车信息
    public static final String GET_BIKE_INFO_PATH = "/bike/";

    /**
     * -----------------------------------扫描二维码查询服务器中车辆信息用到的常量------------------------------------
     */
    public static final String GET_BIKE_QRCODE_PATH = "/factory/qrcode";
    //相关请求参数
    public static final String GET_BIKE_QRCODE_INFO = "info";
    public static final String GET_BIKE_QRCODE_ID = "id";
    public static final String GET_BIKE_QRCODE_TIME = "time";
    public static final String GET_BIKE_QRCODE_AUTH = "auth";

    /**
     * -----------------------------------按名称查找自行车------------------------------------
     */
    public static final String FIND_BIKE_BY_NAME_PATH = "/bike/findbyname";
    //相关请求参数
    public static final String FIND_BIKE_BY_NAME_NAME = "name";

    /**
     * -----------------------------------服务器发指令给自行车------------------------------------
     */
    public static final String SEND_INSTRUCTION_TO_BIKE_PATH_ONE = "/bike/";
    public static final String SEND_INSTRUCTION_TO_BIKE_PATH_TWO = "/cmd";
    //相关请求参数
    public static final String SEND_INSTRUCTION_TO_BIKE_CMD = "cmd";

    //解除报警指令
    public static final String IGNORE_BIKE_ALARM_INSTRUCTION = "2";

}
